export default {
  // 时间过滤器
  dateFormat(value) {
    if (!value) return '';
    const date = new Date(value);
    const year = date.getFullYear();
    const month = ('0' + (date.getMonth() + 1)).slice(-2);
    const day = ('0' + date.getDate()).slice(-2);
    return `${year}-${month}-${day}`;
  },
  flitt(name) {
    console.log(name);
    var name1 = name.split(',')
    var name2 = name1.shift()
    return name1.toString()
  }
};